package unit4.Ex4_11_ch04;

public class Sum implements Calculate {
	@Override
	public int disp(int n) {
		int s=0,i;
	    for (i=1;i<=n;i++)
	       s=s+i;
	    return  s;
	}
}
